package com.bw.video2110

import android.content.Intent
import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import androidx.navigation.fragment.NavHostFragment
import androidx.navigation.ui.setupWithNavController
import com.bawei.main.MaActivity
import com.bw.lib_mvvm.BaseActivity
import com.bw.video2110.databinding.ActivityAppBinding

class AppActivity : BaseActivity<ActivityAppBinding>() {
    override fun initView() {
//        val navHostFragment=supportFragmentManager.findFragmentById(R.id.fragment) as NavHostFragment
//        val navController = navHostFragment.navController
//        viewDataBinding.btmApp.setupWithNavController(navController)
    }

    override fun initData() {
        viewDataBinding.btn.setOnClickListener {
            val intent=Intent(this,MaActivity::class.java)
            startActivity(intent)
        }
    }

    override fun bindLayout(): Int =R.layout.activity_app

}